<!DOCTYPE html>
<html lang="zh"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>线索池表单</title>
    <link rel="icon" href="favicon.ico" type="images/ico" />
    <meta name="author" content="dc" />
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css"/>
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/cluePoolManager/cluePoolDetail.css"/>
</head>
<body>
<input type="hidden" id="poolId" name="poolId" th:value="${poolId}">
<input type="hidden" id="defaultMark" name="defaultMark" th:value="${defaultMark}">
<input type="hidden" id="clueId" name="clueId" >
<div class="container-fluid clue-page">
    <div class="card">
        <div class="card-header">
            <h1>线索清单</h1>
        </div>
        <div class="card-body">
            <div class="row content-action">
                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                    <div class="clue-capacity" id="clueCapacity" style="display: none;">
                        <div class="clue-info">线索池容量：<span class="clue-num" th:text="${usage}"></span><em>/</em><span id="capacity" th:text="${capacity}"></span></div>
                        <div class="progress clue-loading"><span class="progress-bar progress-bar-striped progress-bar-success active"></span></div>
                    </div>
                    <div id="buttonGroupMain" style="display: none;">
                        <button type="button" class="btn btn-success btn-label" onclick="goAddClue()" style="margin: 0;">
                            <label><i class="mdi mdi-plus"></i></label>新增线索
                        </button>
                        <button type="button" class="btn btn-danger" onclick="deleteDataOperate()"><i class="mdi mdi-delete"></i>批量删除 </button>
                        <!--<div class="btn-group pull-left">
                            <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                批量导入 <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu">
                                <li><a href="#!" onclick="showImportClueModal()">直接导入</a></li>
                                <li><a href="#!" onclick="downClueTemplate()">下载模板</a></li>
                            </ul>
                        </div>-->
                        <!--<button type="button" class="btn btn-info">批量导出</button>-->
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                    <div class="pull-right">
                        <div class="min-search pull-left">
                            <input class="form-control" type="text" placeholder="请输入客户名称" id="companyNameMin" name="companyNameMin">
                            <button class="btn btn-primary" type="button" onclick="searchClueList(1)"><i class="mdi mdi-magnify"></i><span>搜索</span></button>
                        </div>
                        <button class="btn btn-default" data-toggle="collapse" data-target="#filterContent" aria-expanded="false" aria-controls="filterContent"><i class="mdi mdi-sort-variant"></i>高级筛选</button>
                    </div>
                </div>
            </div>
            <div class="collapse filter-content" id="filterContent">
                <div class="row">
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label for="companyName">客户名称</label>
                        <div>
                            <input class="form-control" id="companyName" name="companyName" type="text" placeholder="请输入客户名称">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label for="source">线索来源</label>
                        <div>
                            <input class="form-control" id="source" name="source" type="text" placeholder="请输入线索来源" >
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="industryType">行业</label>
                        <div>
                            <select name="industryType" id="industryType" class="form-control">
                                <option value="">请选择行业</option>
                                <option value="1">农、林、牧、渔业</option>
                                <option value="2">采矿业</option>
                                <option value="3">制造业</option>
                                <option value="4">电力、热力、燃气及水生产和供应业</option>
                                <option value="5">建筑业</option>
                                <option value="6">批发和零售业</option>
                                <option value="7">交通运输、仓储和邮政业</option>
                                <option value="8">住宿和餐饮业</option>
                                <option value="9">信息传输、软件和信息技术服务业</option>
                                <option value="10">金融业</option>
                                <option value="11">房地产业</option>
                                <option value="12">租赁和商务服务业</option>
                                <option value="13">科学研究和技术服务业</option>
                                <option value="14">水利、环境和公共设施管理业</option>
                                <option value="15">居民服务、修理和其他服务业</option>
                                <option value="16">教育</option>
                                <option value="17">卫生和社会工作</option>
                                <option value="18">文化、体育和娱乐业</option>
                                <option value="19">公共管理、社会保障和社会组织</option>
                                <option value="20">国际组织</option>
                                <option value="21">其他</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="enterpriseType">公司类型</label>
                        <div>
                            <select name="enterpriseType" id="enterpriseType" class="form-control">
                                <option value="">请选择公司类型</option>
                                <option value="1">有限责任公司</option>
                                <option value="2">股份有限公司</option>
                                <option value="3">集体所有制</option>
                                <option value="4">国有企业</option>
                                <option value="5">个体工商户</option>
                                <option value="6">个人独资企业</option>
                                <option value="7">有限合伙</option>
                                <option value="8">普通合伙</option>
                                <option value="9">外商独资企业</option>
                                <option value="10">港澳台</option>
                                <option value="11">联营企业</option>
                                <option value="12">私营企业</option>
                                <option value="13">企业</option>
                                <option value="14">事业单位</option>
                                <option value="15">基金会</option>
                                <option value="16">社会组织</option>
                                <option value="17">律所</option>
                                <option value="18">香港特别行政区企业</option>
                                <option value="19">台湾省企业</option>
                                <option value="20">独资企业</option>
                                <option value="21">国企</option>
                                <option value="22">其他</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="approvalDate">成立年限</label>
                        <div class="clearfix custom-group">
                            <select name="approvalDate" id="approvalDate" class="form-control">
                                <option value="">请选择</option>
                                <option value="1">半年内</option>
                                <option value="2">1年内</option>
                                <option value="3">1-3年</option>
                                <option value="4">3-5年</option>
                                <option value="5">5-10年</option>
                                <option value="6">10年以上</option>
                            </select>
                            <div class="custom-box">
                                <label class="lyear-checkbox"><input type="checkbox"><span>自定义</span></label>
                                <span class="unit">年</span>
                                <div class="box">
                                    <input type="text" id="beginYearsEstablishment" name="beginYearsEstablishment" class="form-control">
                                    <input type="text" id="endYearsEstablishment" name="endYearsEstablishment" class="form-control">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="registCapital">注册资本</label>
                        <div class="clearfix custom-group">
                            <select name="registCapital" id="registCapital" class="form-control">
                                <option value="">请选择</option>
                                <option value="1">100万内</option>
                                <option value="2">100-200万</option>
                                <option value="3">200-500万</option>
                                <option value="4">500-1000万</option>
                                <option value="5">1000-5000万</option>
                                <option value="6">5000万以上</option>
                            </select>
                            <div class="custom-box">
                                <label class="lyear-checkbox"><input type="checkbox"><span>自定义</span></label>
                                <span class="unit">万</span>
                                <div class="box">
                                    <input type="text" id="beginRegisteredCapital" name="beginRegisteredCapital" class="form-control">
                                    <input type="text"id="endRegisteredCapital" name="endRegisteredCapital" class="form-control">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="insuredTotal">参保人数</label>
                        <div class="clearfix custom-group">
                            <select name=" insuredTotal " id="insuredTotal" class="form-control">
                                <option value="">请选择</option>
                                <option value="1">0人</option>
                                <option value="2">10-19人</option>
                                <option value="3">20-99人</option>
                                <option value="4">100-499人</option>
                                <option value="5">500-999人</option>
                                <option value="6">1000-4999人</option>
                                <option value="6">5000-9999人</option>
                                <option value="6">10000人以上</option>
                            </select>
                            <div class="custom-box">
                                <label class="lyear-checkbox"><input type="checkbox"><span>自定义</span></label>
                                <span class="unit">人</span>
                                <div class="box">
                                    <input type="text" id="beginInsuredNumbers" name="beginInsuredNumbers" class="form-control">
                                    <input type="text" id="endInsuredNumbers" name="endInsuredNumbers" class="form-control">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="isExistContactPersonPhone">是否有联系电话</label>
                        <div>
                            <select name="isExistContactPersonPhone" id="isExistContactPersonPhone" class="form-control">
                                <option value="">不限</option>
                                <option value="0">否</option>
                                <option value="1">是</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="isExistContactPerson">是否有联系人</label>
                        <div>
                            <select name="isExistContactPerson" id="isExistContactPerson" class="form-control">
                                <option value="">不限</option>
                                <option value="0">否</option>
                                <option value="1">是</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="isExistCompanyEmail">是否有联系邮箱</label>
                        <div>
                            <select name="isExistCompanyEmail" id="isExistCompanyEmail" class="form-control">
                                <option value="">不限</option>
                                <option value="0">否</option>
                                <option value="1">是</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="tags">标签</label>
                        <div>
                            <input class="form-control" type="text" placeholder="请输入标签" id="tags" name="tags">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="provinceName">省份</label>
                        <div>
                            <input class="form-control" type="text" placeholder="请输入省份" id="provinceName" name="provinceName">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="cityName">城市</label>
                        <div>
                            <input class="form-control" type="text" placeholder="请输入城市" id="cityName" name="cityName">
                        </div>
                    </div>
<!--                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">-->
<!--                        <label for="countyName">区/县</label>-->
<!--                        <div>-->
<!--                            <input class="form-control" type="text" placeholder="请输入区/县" id="countyName" name="countyName">-->
<!--                        </div>-->
<!--                    </div>-->
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="registStatus">企业状态</label>
                        <div>
                            <select name="registStatus" id="registStatus" class="form-control">
                                <option value="">请选择企业状态</option>
                                <option value="1">在业</option>
                                <option value="2">续存</option>
                                <option value="3">吊销</option>
                                <option value="4">注销</option>
                                <option value="5">迁出</option>
                                <option value="6">筹建</option>
                                <option value="7">清算</option>
                                <option value="8">迁入</option>
                                <option value="9">停业</option>
                                <option value="10">撤销</option>
                                <option value="11">在业/存续</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="customerType">客户类别</label>
                        <div>
                            <select name="customerType" id="customerType" class="form-control">
                                <option value="">请选择客户类别</option>
                                <option value="1">优</option>
                                <option value="2">良</option>
                                <option value="3">一般</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                        <label>&nbsp;</label>
                        <div class="text-right">
                            <button class="btn btn-primary" type="button" onclick="searchClueList()"><i class="mdi mdi-magnify"></i><span>搜索</span></button>
                            <button class="btn btn-default" onclick="reset()">重置</button>
                        </div>
                    </div>
                </div>
            </div>
            <table id="clueList"></table>
        </div>
    </div>
</div>
</div>

<!--<div class="modal fade" id="importClueModal" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-body">
                <input type="file" id="importClueFile" name="importClueFile">
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="importClueList()">导入
                </button>
                <button type="button" class="btn btn-default" data-dismiss="modal"
                        onclick="cancelImportClueList()">取消
                </button>
            </div>
        </div>
    </div>
</div>-->

<!-- 模态框 收回 -->
<div class="modal fade" tabindex="-1" role="dialog" id="retrieveClueModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-body" style="min-height: 200px;">
                <!-- start -->
                <h4 style="line-height: 40px;font-size: 14px;font-weight: bold;">请输入释放信息</h4>
                <form class="form-horizontal">
                    <textarea class="form-control" id="returnReason" name="returnReason" rows="6" placeholder="请输入释放信息"></textarea>
                </form>
                <div style="width: 100%;display: flex;justify-content: center; margin-top: 30px;">
                    <div class="btn btn-primary" style="margin-right: 20px;" onclick="confirmReturnClue()">确定</div>
                    <div class="btn btn-default" onclick="cancelReturnClue()">取消</div>
                </div>
                <!-- end -->
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script src="/js/bootstrapTableSelect.js"></script>
<!--<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>-->
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/cluePoolManager/user/myClueDetail.js"></script>
</html>